<?php
/*******************************************************************************
 *
 *  Name: Incident Model
 *
 *  Date: 4/1/2012
 *  
 *  Description: This model allows access to our Incident Resolved table in 
 *               our database
 *  
 *  Author: 
 *  
 *  Todo:
 *     NONE
 *
 *  Modification History:  
 * 
 *   Date         Name
 *  ----------   --------------
 *  2012-04-26   DAVID JARMAN
 * 
 *****************************************************************************/
?>
<?php
class Incident_resolved_model extends CI_Model {

    function __construct()
    {
        // Call the Model constructor
        parent::__construct();
        $this->load->database();
    }
    
    function get($IncidentID)
    {
        $query = $this->db->get_where('Incident_resolved', array('IncidentID' => $IncidentID));
        return $query->result_array();
    }
 
    function getAll()
    {
       $query = $this->db->get('Incident_resolved');
       return $query->result_array();
    }
}
?>
